﻿<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/j.tld" prefix="j" %>

                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                    
                    	<c:forEach var="menu" items="${root.children}">
	                    	<li class="treeview">
                            <a href="${menu.url}">
                                <i class="${menu.icon}"></i>
                                <span>${menu.name}</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>                            
                            <ul class="treeview-menu">

                            <c:forEach var="subMenu" items="${menu.children}">
                                <li>
                                	<a href="${subMenu.url }"  <c:if test="${! empty subMenu.url}">class="ajax-link"</c:if> >
                                	<i class="fa fa-angle-double-right"></i><span>${subMenu.name }</span>
                                	</a>
                                </li>
                            </c:forEach>
                            </ul>
                            
                            </li>
                    	</c:forEach>
                    </ul>
                </section>
                <!-- /.sidebar -->
